
#ifndef	_SRLFS_CONFIG_
#define	_SRLFS_CONFIG_

/* file using */
#define	_FILE_NAME_MAX_LENGTH_	128		// this is unicode string length(in shorts)

/* file attribute */
#define _SRLFS_FILE_FLAGS_SYS_			0x1
#define _SRLFS_FILE_FLAGS_HIDE_			0x2
#define _SRLFS_FILE_FLAGS_READLONLY_	0x4

/* file type */
#define _SRLFS_FILE_TYPE_FILEBODY_		0x0
#define	_SRLFS_FILE_TYPE_DIRECTORY_		0x1
#define _SRLFS_FILE_TYPE_DRIVER_		0x2

/* file time type */
#define _SRLFS_FILE_TIME_FLAG_CREATE	0x0
#define _SRLFS_FILE_TIME_FLAG_MODIFY	0x1
#define _SRLFS_FILE_TIME_FLAG_ACCESS	0x2

/* nandflash page attribute in OOB area */
#define	_SRLFS_PAGE_ATTR_INVALID_		0xff
#define	_SRLFS_PAGE_ATTR_USING_FILE_	0x0
#define	_SRLFS_PAGE_ATTR_USING_DIR		0x1			
#define	_SRLFS_PAGE_ATTR_FREE			0x2			

#define _SRLFS_ROOT_DRIVER_MAX_COUNT_	0x4			/* partition max count in file system */

/* flash using */
#define	_SRLFS_START_ADDRESS_			0x40000		/* file system start address in nandflash */
#define	_SRLFS_END_ADDRESS_				0x10000000	/* file system end address in nandflash */

/* error code definition */
#define	FS_COMMENERROR		-1
#define	FS_READWRITEONLY	-2
#define	FS_WRITEREADONLY	-3
#define	FS_NOMORESPACE		-4
#define	FS_NOMOREMEMORY		-5
#define	FS_INVALIDPATH		-6

/* open type */
#define	FS_OPEN_CREATE		0x1
#define	FS_OPEN_READWRITE	0x2
#define	FS_OPEN_READONLY	0x4
#define	FS_OPEN_WRITEONLY	0x8

#endif	/* _SRLFS_CONFIG_ */
